package day05;

import java.util.Scanner;

public class ForDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int h = 0;
        for(int i = 1;i<=10;i++) {
            int a = (int) (Math.random() * 1000 + 1);
            int b = (int) (Math.random() * 1000 + 1);
            int c = a + b;
            System.out.println("(" + i + ")" +a+"+"+b+"=?");
            System.out.println("开始");
            int c1 = scan.nextInt();
            if (c1 == c) {
                System.out.println("你真牛逼");
                h+=10;
            } else {
                System.out.println("答错了，你真傻逼");
            }
        }
        if(h==100){
            System.out.println("100分，你真牛逼");
        }else{
            System.out.println("你真是个废物");
        }












//        int  num = 0;
//        for(int i = 1;i<=100;i++){
//            num+=i;
//        }
























//        int num = 1
//        for(int i = 2;i<=8;i++){
//            num*=i;
//        }

















//        int num = 0;
//        for(int i = 2;i<=100;i+=2){
//            num+=i;
//        }
//        System.out.println(num);

    }
}
